package com.xbongbong.pro.domain.dao;

import com.xbongbong.admin.domain.entity.MarketDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: shian
 * @Date: 2020/2/13 13:46
 * @Description:
 */
@Repository
@Mapper
public interface MarketDetailDao {

    Integer insert(MarketDetailEntity entity);

    Integer update(MarketDetailEntity entity);

    List<MarketDetailEntity> findEntitys(@Param("param") Map<String, Object> param);

    MarketDetailEntity getByKey(@Param("key") Long key);

    List<MarketDetailEntity> getByPublish();

    List<MarketDetailEntity> getBannerByPublish();

    int batchUpdate(@Param("list") List<MarketDetailEntity> marketList);

    Integer getEntitysCount(Map<String, Object> param);
}